package com.example.sxt_practise.java基础;

import java.util.LinkedList;
import java.util.List;

/**
 * @author gaofeng
 * date 2022年03月19日 0:32
 */
public class TestPrimitive {
    public static void main(String[] args) {
//        int x = 34.5;
//        boolean boo = x;
        int g = 17;
        int y = g;
        y = y + 10;
        short s;
//        s = y;
        byte b = 3;
        short n = 12;
        int[] unm = new int[3] ;
        unm[0] = b ;
        unm[1] = n ;
        byte v = b;
//        v = n;
//        byte k = 128;
        int p = 3 * g + y;

        List list = new LinkedList();
        list.add(b) ;
        list.add(new Object()) ;

        Integer integer = -129 ;
        Integer integer1 = -129 ;
        System.out.println(integer == integer1);

        int in = 12 ;
        int i = calcArea(in);
        System.out.println(in + "-->" + i);


    }

    static int calcArea(int height) {
        return height * 2 ;
    }

}

